
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AI工具导航 | AI Docker</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary-color: #00f0ff;
            --secondary-color: #8a2be2;
            --accent-color: #ff00aa;
            --dark-color: #0a0e17;
            --light-color: #e0f7fa;
            --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            --gradient-2: linear-gradient(135deg, var(--accent-color), var(--primary-color));
            --shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
            --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            --glow: 0 0 15px rgba(0, 240, 255, 0.6);
            --sidebar-width: 240px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }

        body {
            background-color: var(--dark-color);
            color: var(--light-color);
            line-height: 1.6;
            overflow-x: hidden;
            background-image: 
                radial-gradient(circle at 20% 30%, rgba(0, 240, 255, 0.1) 0%, transparent 20%),
                radial-gradient(circle at 80% 70%, rgba(138, 43, 226, 0.1) 0%, transparent 20%);
            display: flex;
            min-height: 100vh;
        }

        /* 侧边栏导航 */
        .sidebar {
            width: var(--sidebar-width);
            background: rgba(10, 14, 23, 0.9);
            backdrop-filter: blur(10px);
            border-right: 1px solid rgba(0, 240, 255, 0.2);
            padding: 20px 0;
            position: fixed;
            height: 100vh;
            overflow-y: auto;
            z-index: 100;
            transition: var(--transition);
        }

        .sidebar-header {
            padding: 0 20px 20px;
            border-bottom: 1px solid rgba(0, 240, 255, 0.1);
            margin-bottom: 15px;
        }

        .logo {
            display: flex;
            align-items: center;
            font-size: 22px;
            font-weight: 700;
            color: var(--primary-color);
            text-decoration: none;
            text-shadow: var(--glow);
        }

        .logo i {
            margin-right: 10px;
            color: var(--accent-color);
        }

        .category-nav {
            display: flex;
            flex-direction: column;
            gap: 5px;
            padding: 0 15px;
        }

        .category-item {
            padding: 12px 15px;
            border-radius: 8px;
            color: var(--light-color);
            text-decoration: none;
            transition: var(--transition);
            display: flex;
            align-items: center;
            font-size: 14px;
        }

        .category-item i {
            margin-right: 10px;
            width: 20px;
            text-align: center;
        }

        .category-item:hover, .category-item.active {
            background: var(--gradient);
            color: var(--dark-color);
            box-shadow: var(--glow);
        }

        /* 主内容区 */
        .main-content {
            flex: 1;
            margin-left: var(--sidebar-width);
            padding: 100px 40px 60px;
            transition: var(--transition);
        }

        /* 工具导航标题 */
        .tools-header {
            margin-bottom: 40px;
        }

        .tools-title h1 {
            font-size: 36px;
            background: linear-gradient(to right, var(--primary-color), var(--accent-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 15px;
        }

        .tools-title p {
            color: rgba(224, 247, 250, 0.8);
            max-width: 600px;
        }

        /* 搜索和筛选 */
        .tools-controls {
            display: flex;
            gap: 15px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }

        .search-box {
            position: relative;
            flex: 1;
            min-width: 250px;
        }

        .search-box input {
            width: 100%;
            padding: 12px 15px 12px 45px;
            background: rgba(20, 25, 40, 0.8);
            border: 1px solid rgba(0, 240, 255, 0.3);
            border-radius: 50px;
            color: var(--light-color);
            font-size: 16px;
            transition: var(--transition);
        }

        .search-box input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
        }

        .search-box i {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--primary-color);
        }

        /* 搜索建议框 */
        .search-suggestions {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: rgba(20, 25, 40, 0.95);
            border: 1px solid rgba(0, 240, 255, 0.3);
            border-radius: 0 0 15px 15px;
            max-height: 300px;
            overflow-y: auto;
            z-index: 100;
            display: none;
            backdrop-filter: blur(10px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .search-suggestions.active {
            display: block;
        }

        .suggestion-item {
            padding: 12px 20px;
            cursor: pointer;
            transition: var(--transition);
            border-bottom: 1px solid rgba(0, 240, 255, 0.1);
        }

        .suggestion-item:hover {
            background: rgba(0, 240, 255, 0.1);
        }

        .search-history {
            padding: 10px 15px;
            font-size: 14px;
            color: rgba(224, 247, 250, 0.7);
            border-bottom: 1px solid rgba(0, 240, 255, 0.1);
        }

        .search-history-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .clear-history {
            color: var(--primary-color);
            cursor: pointer;
            font-size: 12px;
        }

        /* 工具网格布局 */
        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
        }

        .tool-card {
            background: rgba(20, 25, 40, 0.7);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(0, 240, 255, 0.2);
        }

        .tool-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 240, 255, 0.3);
        }

        .tool-img {
            height: 160px;
            overflow: hidden;
            position: relative;
        }

        .tool-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .tool-card:hover .tool-img img {
            transform: scale(1.05);
        }

        .tool-content {
            padding: 18px;
        }

        .tool-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
        }

        .tool-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--light-color);
            margin-bottom: 5px;
        }

        .tool-badge {
            background: rgba(0, 240, 255, 0.1);
            color: var(--primary-color);
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            border: 1px solid rgba(0, 240, 255, 0.3);
        }

        .tool-badge.free {
            color: #4caf50;
            border-color: rgba(76, 175, 80, 0.3);
            background: rgba(76, 175, 80, 0.1);
        }

        .tool-badge.paid {
            color: #ff9800;
            border-color: rgba(255, 152, 0, 0.3);
            background: rgba(255, 152, 0, 0.1);
        }

        .tool-badge.open-source {
            color: #9c27b0;
            border-color: rgba(156, 39, 176, 0.3);
            background: rgba(156, 39, 176, 0.1);
        }

        .tool-description {
            color: rgba(224, 247, 250, 0.7);
            margin-bottom: 15px;
            font-size: 14px;
            line-height: 1.5;
        }

        .tool-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 15px;
            padding-top: 12px;
            border-top: 1px solid rgba(0, 240, 255, 0.1);
        }

        .tool-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .tool-tag {
            background: rgba(0, 240, 255, 0.1);
            color: var(--primary-color);
            padding: 4px 10px;
            border-radius: 50px;
            font-size: 12px;
            font-weight: 500;
            border: 1px solid rgba(0, 240, 255, 0.3);
        }

        .tool-link {
            display: inline-flex;
            align-items: center;
            color: var(--primary-color);
            font-weight: 600;
            text-decoration: none;
            font-size: 14px;
            transition: var(--transition);
        }

        .tool-link:hover {
            color: var(--accent-color);
        }

        /* 空状态 */
        .empty-state {
            grid-column: 1 / -1;
            text-align: center;
            padding: 60px 0;
            color: rgba(224, 247, 250, 0.5);
        }

        .empty-state i {
            font-size: 60px;
            margin-bottom: 20px;
            color: rgba(0, 240, 255, 0.3);
        }

        .empty-state h3 {
            font-size: 24px;
            margin-bottom: 15px;
            color: rgba(224, 247, 250, 0.8);
        }

        .empty-state p {
            max-width: 500px;
            margin: 0 auto 25px;
        }

        .reset-filters {
            background: var(--gradient);
            color: var(--dark-color);
            padding: 10px 25px;
            border-radius: 50px;
            font-weight: 600;
            text-decoration: none;
            display: inline-block;
            transition: var(--transition);
        }

        .reset-filters:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 240, 255, 0.3);
        }

        /* 菜单切换按钮 */
        .menu-toggle {
            position: fixed;
            top: 20px;
            left: 20px;
            width: 40px;
            height: 40px;
            background: rgba(0, 240, 255, 0.2);
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            cursor: pointer;
            border: 1px solid rgba(0, 240, 255, 0.3);
        }

        .menu-toggle i {
            color: var(--primary-color);
            font-size: 20px;
        }

        /* 响应式设计 */
        @media (max-width: 992px) {
            .sidebar {
                transform: translateX(-100%);
                width: 260px;
            }
            
            .sidebar.active {
                transform: translateX(0);
            }
            
            .main-content {
                margin-left: 0;
                padding: 100px 25px 60px;
            }
            
            .menu-toggle {
                display: flex;
            }
        }

        @media (max-width: 768px) {
            .tools-grid {
                grid-template-columns: 1fr;
            }
            
            .tool-img {
                height: 200px;
            }
            
            .tools-title h1 {
                font-size: 28px;
            }
        }

        @media (max-width: 576px) {
            .main-content {
                padding: 100px 20px 60px;
            }
            
            .search-box {
                min-width: 100%;
            }
        }
    </style>
</head>
<body>
    <!-- 菜单切换按钮（移动端） -->
    <div class="menu-toggle" id="menu-toggle">
        <i class="fas fa-bars"></i>
    </div>

    <!-- 侧边栏导航 -->
    <aside class="sidebar" id="sidebar">
        <div class="sidebar-header">
            <a href="#" class="logo">
                <i class="fas fa-robot"></i>
                AI Docker
            </a>
        </div>
        
        <nav class="category-nav">
            <a href="#" class="category-item active" data-category="all">
                <i class="fas fa-star"></i> 热门推荐
            </a>
             <a href="#" class="category-item" data-category="china">
                <i class="fas fa-flag"></i> 国产AI
            </a>
            <a href="#" class="category-item" data-category="chat">
                <i class="fas fa-comment-alt"></i> 对话AI
            </a>
            <a href="#" class="category-item" data-category="image">
                <i class="fas fa-paint-brush"></i> 图像生成
            </a>
            <a href="#" class="category-item" data-category="code">
                <i class="fas fa-code"></i> 编程开发
            </a>
            <a href="#" class="category-item" data-category="video">
                <i class="fas fa-video"></i> 视频处理
            </a>
            <a href="#" class="category-item" data-category="audio">
                <i class="fas fa-music"></i> 音频处理
            </a>
            <a href="#" class="category-item" data-category="writing">
                <i class="fas fa-language"></i> 语言翻译
            </a>
            <a href="#" class="category-item" data-category="education">
                <i class="fas fa-graduation-cap"></i> 教育学习
            </a>
            <a href="#" class="category-item" data-category="business">
                <i class="fas fa-briefcase"></i> 商业应用
            </a>
           
        </nav>
    </aside>

    <!-- 主内容区 -->
    <main class="main-content">
        <div class="container">
            <!-- 工具导航标题 -->
            <div class="tools-header">
                <div class="tools-title">
                    <h1>AI工具导航</h1>
                    <p>探索2000+精选人工智能工具，按类别、功能和流行度筛选</p>
                </div>
            </div>
            
            <!-- 搜索和筛选 -->
            <div class="tools-controls">
                <div class="search-box">
                    <i class="fas fa-search"></i>
                    <input type="text" id="search-input" placeholder="搜索AI工具...">
                    <div class="search-suggestions" id="search-suggestions">
                        <div class="search-history">
                            <div class="search-history-header">
                                <span>最近搜索</span>
                                <span class="clear-history">清除</span>
                            </div>
                            <div class="suggestions-list" id="search-history"></div>
                        </div>
                        <div class="suggestions-list" id="suggestions-list"></div>
                    </div>
                </div>
            </div>
            
            <!-- 工具网格 -->
            <div class="tools-grid" id="tools-grid">
                <!-- 工具卡片将通过JavaScript动态加载 -->
            </div>
           <!-- <div>
            <p>Copyright © 2025 AI Docker 鲁ICP备2021107650号 </p>
            </div> -->
        </div>
    </main>
 
    <script>
        // 工具数据
        const toolsData = [
            {
                id: 1,
                title: "ChatGPT Pro",
                subtitle: "OpenAI最新对话AI",
                description: "OpenAI最新对话AI，具备更强的理解能力和创造性，适用于内容创作、编程辅助、语言学习等多种场景。GPT-4模型提供更准确的回答和更自然的对话体验。",
                category: ["chat", "writing"],
                pricing: "paid",
                rating: 4.9,
                date: "2023-03-15",
                tags: ["NLP", "GPT-4", "对话AI", "写作辅助"],
                image: "http://www.aidocker.cn/demo.png",
                featureImage: "http://www.aidocker.cn/demo.png",
                features: [
                    {
                        icon: "fas fa-comments",
                        title: "自然对话",
                        description: "流畅自然的对话体验，接近人类交流"
                    },
                    {
                        icon: "fas fa-lightbulb",
                        title: "创意生成",
                        description: "帮助生成创意内容、故事和诗歌"
                    }
                ],
                website: "https://chat.openai.com",
                tryLink: "https://chat.openai.com"
            },
            {
                id: 2,
                title: "Midjourney V6",
                subtitle: "先进的文本到图像生成AI",
                description: "最先进的文本到图像生成AI，创造令人惊叹的艺术作品、设计概念和视觉内容，释放您的想象力。支持多种艺术风格和超高分辨率输出。",
                category: ["image", "design"],
                pricing: "paid",
                rating: 4.8,
                date: "2023-05-20",
                tags: ["图像生成", "AI艺术", "创意设计"],
                image: "https://images.unsplash.com/photo-1639762681057-408e52192e55?ixlib=rb-4.0.3&auto=format&fit=crop&w=500&q=80",
                featureImage: "https://images.unsplash.com/photo-1677442135136-760c813a743d?ixlib=rb-4.0.3&auto=format&fit=crop&w=500&q=80",
                features: [
                    {
                        icon: "fas fa-magic",
                        title: "艺术风格",
                        description: "支持多种艺术风格和流派"
                    },
                    {
                        icon: "fas fa-expand",
                        title: "高分辨率",
                        description: "生成高达2048x2048像素的图像"
                    }
                ],
                website: "https://www.midjourney.com",
                tryLink: "https://www.midjourney.com"
            },
            {
                id: 3,
                title: "GitDocker Copilot X",
                subtitle: "AI编程助手",
                description: "AI编程助手的最新版本，提供更智能的代码建议、错误检测和文档生成，大幅提升开发效率。支持多种编程语言和开发环境。",
                category: ["code"],
                pricing: "paid",
                rating: 4.7,
                date: "2023-04-10",
                tags: ["编程辅助", "AI开发", "代码生成"],
                image: "https://images.unsplash.com/photo-1617791160536-598cf32026fb?ixlib=rb-4.0.3&auto=format&fit=crop&w=500&q=80",
                featureImage: "https://images.unsplash.com/photo-1677442135136-760c813a743d?ixlib=rb-4.0.3&auto=format&fit=crop&w=500&q=80",
                features: [
                    {
                        icon: "fas fa-code",
                        title: "代码补全",
                        description: "智能预测并补全代码片段"
                    },
                    {
                        icon: "fas fa-bug",
                        title: "错误检测",
                        description: "实时检测潜在错误和漏洞"
                    }
                ],
                website: "https://github.com/features/copilot",
                tryLink: "https://github.com/features/copilot"
            },
            {
                id: 4,
                title: "Stable Diffusion 3",
                subtitle: "开源文本到图像模型",
                description: "强大的开源文本到图像扩散模型，可在本地运行，提供高度可控的图像生成能力。支持自定义模型训练和插件扩展。",
                category: ["image"],
                pricing: "open-source",
                rating: 4.6,
                date: "2023-06-05",
                tags: ["图像生成", "本地运行", "开源"],
                image: "https://images.unsplash.com/photo-1626785774573-4b799315345d?ixlib=rb-4.0.3&auto=format&fit=crop&w=500&q=80",
                featureImage: "https://images.unsplash.com/photo-1677442135136-760c813a743d?ixlib=rb-4.0.3&auto=format&fit=crop&w=500&q=80",
                features: [
                    {
                        icon: "fas fa-laptop-code",
                        title: "本地运行",
                        description: "可在个人电脑上离线运行"
                    },
                    {
                        icon: "fas fa-cogs",
                        title: "高度可定制",
                        description: "支持自定义模型和参数调整"
                    }
                ],
                website: "https://stablediffusionweb.com",
                tryLink: "https://stablediffusionweb.com"
            },
            {
                id: 5,
                title: "Notion AI",
                subtitle: "智能笔记和工作空间",
                description: "集成在Notion中的AI助手，可自动生成内容、总结文档、优化写作，提升工作效率。与Notion的强大组织功能完美结合。",
                category: ["writing", "business"],
                pricing: "paid",
                rating: 4.5,
                date: "2023-02-28",
                tags: ["生产力", "写作辅助", "笔记工具"],
                image: "demo.png",
                featureImage: "demo.png",
                features: [
                    {
                        icon: "fas fa-edit",
                        title: "内容生成",
                        description: "根据提示自动生成文章和列表"
                    },
                    {
                        icon: "fas fa-file-contract",
                        title: "文档总结",
                        description: "快速提取长文档的关键要点"
                    }
                ],
                website: "https://www.notion.so/product/ai",
                tryLink: "https://www.notion.so/product/ai"
            },
            {
                id: 6,
                title: "Runway ML",
                subtitle: "创意AI工具集",
                description: "创意AI工具集，提供视频编辑、图像生成、3D建模等多种AI驱动的创意工具。无需编程经验即可使用高级AI功能。",
                category: ["video", "image", "design"],
                pricing: "paid",
                rating: 4.4,
                date: "2023-01-15",
                tags: ["视频编辑", "创意工具", "多媒体"],
                image: "https://images.unsplash.com/photo-1677442135136-760c813a743d?ixlib=rb-4.0.3&auto=format&fit=crop&w=500&q=80",
                featureImage: "https://images.unsplash.com/photo-1677442135136-760c813a743d?ixlib=rb-4.0.3&auto=format&fit=crop&w=500&q=80",
                features: [
                    {
                        icon: "fas fa-film",
                        title: "视频编辑",
                        description: "AI辅助的视频剪辑和特效添加"
                    },
                    {
                        icon: "fas fa-image",
                        title: "图像生成",
                        description: "基于文本描述生成创意图像"
                    }
                ],
                website: "https://runwayml.com",
                tryLink: "https://runwayml.com"
            },
            {
                id: 7,
                title: "ElevenLabs",
                subtitle: "文本到语音AI",
                description: "最先进的文本到语音AI，提供自然流畅的语音合成，支持多种语言和情感表达。可克隆自定义语音风格。",
                category: ["audio"],
                pricing: "paid",
                rating: 4.3,
                date: "2023-03-01",
                tags: ["语音合成", "TTS", "音频处理"],
                image: "https://images.unsplash.com/photo-1677442135136-760c813a743d?ixlib=rb-4.0.3&auto=format&fit=crop&w=500&q=80",
                featureImage: "https://images.unsplash.com/photo-1677442135136-760c813a743d?ixlib=rb-4.0.3&auto=format&fit=crop&w=500&q=80",
                features: [
                    {
                        icon: "fas fa-robot",
                        title: "自然语音",
                        description: "接近人类的声音质量和语调"
                    },
                    {
                        icon: "fas fa-language",
                        title: "多语言支持",
                        description: "支持20+种语言的语音合成"
                    }
                ],
                website: "https://elevenlabs.io",
                tryLink: "https://elevenlabs.io"
            },
            {
                id: 8,
                title: "Hugging Face",
                subtitle: "开源AI模型平台",
                description: "开源AI模型平台，提供数千种预训练模型，涵盖NLP、计算机视觉等多个领域。支持模型训练、部署和共享。",
                category: ["code", "chat", "image"],
                pricing: "open-source",
                rating: 4.7,
                date: "2022-11-20",
                tags: ["开源", "模型库", "机器学习"],
                image: "https://images.unsplash.com/photo-1677442135136-760c813a743d?ixlib=rb-4.0.3&auto=format&fit=crop&w=500&q=80",
                featureImage: "https://images.unsplash.com/photo-1677442135136-760c813a743d?ixlib=rb-4.0.3&auto=format&fit=crop&w=500&q=80",
                features: [
                    {
                        icon: "fas fa-box-open",
                        title: "模型库",
                        description: "数千种预训练AI模型"
                    },
                    {
                        icon: "fas fa-share-alt",
                        title: "社区共享",
                        description: "开发者共享和协作平台"
                    }
                ],
                website: "https://huggingface.co",
                tryLink: "https://huggingface.co"
            },
              // 国产AI工具
            {
                id: 9,
                title: "DeepSeek Chat",
                subtitle: "深度求索AI助手",
                description: "深度求索推出的中文AI助手，具备强大的中文理解和生成能力，支持长文本处理和多轮对话。",
                category: ["chat", "writing", "china"],
                pricing: "free",
                rating: 4.6,
                date: "2023-09-01",
                tags: ["中文AI", "长文本处理", "国产"],
                image: "https://example.com/deepseek.jpg",
                website: "https://www.deepseek.com",
                tryLink: "https://chat.deepseek.com"
            },
            {
                id: 10,
                title: "豆包",
                subtitle: "字节跳动AI助手",
                description: "字节跳动推出的AI对话助手，擅长创意写作和内容生成，集成在今日头条等产品中。",
                category: ["chat", "writing", "china"],
                pricing: "free",
                rating: 4.5,
                date: "2023-08-15",
                tags: ["字节跳动", "内容生成", "国产"],
                image: "https://example.com/doubao.jpg",
                website: "https://www.doubao.com",
                tryLink: "https://www.doubao.com"
            },
            {
                id: 11,
                title: "文心一言",
                subtitle: "百度大语言模型",
                description: "百度推出的中文大语言模型，具备多模态理解能力，适用于内容创作、知识问答等场景。",
                category: ["chat", "writing", "china"],
                pricing: "free",
                rating: 4.7,
                date: "2023-03-16",
                tags: ["百度", "大语言模型", "国产"],
                image: "https://example.com/wenxin.jpg",
                website: "https://yiyan.baidu.com",
                tryLink: "https://yiyan.baidu.com"
            },
            {
                id: 12,
                title: "通义千问",
                subtitle: "阿里云大模型",
                description: "阿里云推出的通义大模型系列，提供强大的多轮对话和文本生成能力。",
                category: ["chat", "business", "china"],
                pricing: "free",
                rating: 4.5,
                date: "2023-04-07",
                tags: ["阿里云", "企业应用", "国产"],
                image: "https://example.com/tongyi.jpg",
                website: "https://tongyi.aliyun.com",
                tryLink: "https://tongyi.aliyun.com"
            },
            {
                id: 13,
                title: "讯飞星火",
                subtitle: "科大讯飞认知大模型",
                description: "科大讯飞推出的认知智能大模型，在语音识别和自然语言处理方面表现优异。",
                category: ["chat", "audio", "china"],
                pricing: "free",
                rating: 4.6,
                date: "2023-05-06",
                tags: ["科大讯飞", "语音AI", "国产"],
                image: "https://example.com/xinghuo.jpg",
                website: "https://xinghuo.xfyun.cn",
                tryLink: "https://xinghuo.xfyun.cn"
            },
            {
                id: 14,
                title: "智谱AI",
                subtitle: "清华系大模型",
                description: "源自清华大学的AI大模型，在学术和专业领域有深入优化，支持复杂问题解答。",
                category: ["chat", "education", "china"],
                pricing: "free",
                rating: 4.4,
                date: "2023-07-01",
                tags: ["清华大学", "学术AI", "国产"],
                image: "https://example.com/zhipu.jpg",
                website: "https://www.zhipu.ai",
                tryLink: "https://chatglm.cn"
            },
            {
                id: 15,
                title: "商量",
                subtitle: "上海AI实验室大模型",
                description: "上海人工智能实验室研发的大语言模型，专注于中文理解和生成任务。",
                category: ["chat", "writing", "china"],
                pricing: "free",
                rating: 4.3,
                date: "2023-06-01",
                tags: ["上海AI实验室", "中文模型", "国产"],
                image: "https://example.com/shangliang.jpg",
                website: "https://www.shangliang.ai",
                tryLink: "https://chat.shangliang.ai"
            },
             {
        id: 16,
        title: "Kimi Chat",
        subtitle: "月之暗面智能助手",
        description: "月之暗面公司推出的长文本处理AI助手，支持超长上下文记忆和复杂文档分析，擅长技术文档处理。",
        category: ["chat", "writing", "china"],
        pricing: "free",
        rating: 4.7,
        date: "2023-10-10",
        tags: ["长文本处理", "文档分析", "国产"],
        image: "https://example.com/kimi.jpg",
        features: [
            {
                icon: "fas fa-scroll",
                title: "长文本处理",
                description: "支持20万字以上的超长文本处理"
            },
            {
                icon: "fas fa-file-alt",
                title: "文档解析",
                description: "精准解析PDF/Word/Excel等格式"
            }
        ],
        website: "https://kimi.moonshot.cn",
        tryLink: "https://kimi.moonshot.cn"
    },
    {
        id: 17,
        title: "元宝",
        subtitle: "昆仑万维AI助手",
        description: "昆仑万维推出的多模态AI助手，支持文本、图像、音频的生成和理解，面向创作者和开发者。",
        category: ["chat", "image", "audio", "china"],
        pricing: "free",
        rating: 4.4,
        date: "2023-11-01",
        tags: ["多模态", "内容创作", "国产"],
        image: "https://example.com/yuanbao.jpg",
        features: [
            {
                icon: "fas fa-images",
                title: "多模态生成",
                description: "同时支持文本和图像生成"
            },
            {
                icon: "fas fa-music",
                title: "音频处理",
                description: "支持语音合成和音乐生成"
            }
        ],
        website: "https://yuanbao.ai",
        tryLink: "https://yuanbao.ai"
    },
    {
        id: 18,
        title: "360智脑",
        subtitle: "360安全大模型",
        description: "360公司推出的安全领域大模型，具备网络安全知识库和威胁检测能力，同时支持通用问答。",
        category: ["chat", "security", "china"],
        pricing: "free",
        rating: 4.3,
        date: "2023-09-15",
        tags: ["网络安全", "威胁检测", "国产"],
        image: "https://example.com/360zhinao.jpg",
        features: [
            {
                icon: "fas fa-shield-alt",
                title: "安全防护",
                description: "网络安全知识库和威胁分析"
            },
            {
                icon: "fas fa-lock",
                title: "隐私保护",
                description: "企业级数据安全保障"
            }
        ],
        website: "https://ai.360.cn",
        tryLink: "https://ai.360.cn"
    },
    {
        id: 19,
        title: "阶跃星辰",
        subtitle: "多模态创作助手",
        description: "专注于创意内容生成的多模态AI，支持图文混排内容创作，适合自媒体和营销场景。",
        category: ["writing", "image", "china"],
        pricing: "freemium",
        rating: 4.2,
        date: "2023-12-01",
        tags: ["内容创作", "营销文案", "国产"],
        image: "https://example.com/stepfun.jpg",
        features: [
            {
                icon: "fas fa-pencil-alt",
                title: "文案生成",
                description: "自动生成营销文案和社交媒体内容"
            },
            {
                icon: "fas fa-photo-video",
                title: "图文混排",
                description: "同时生成配套文案和配图"
            }
        ],
        website: "https://stepfun.com",
        tryLink: "https://stepfun.com"
    },
    {
        id: 20,
        title: "百川大模型",
        subtitle: "王小川团队大模型",
        description: "搜狗创始人王小川团队研发的大语言模型，在医疗和法律领域有专业优化版本。",
        category: ["chat", "professional", "china"],
        pricing: "freemium",
        rating: 4.5,
        date: "2023-08-01",
        tags: ["专业领域", "医疗法律", "国产"],
        image: "https://example.com/baichuan.jpg",
        features: [
            {
                icon: "fas fa-user-md",
                title: "医疗助手",
                description: "医疗知识问答和报告解读"
            },
            {
                icon: "fas fa-gavel",
                title: "法律顾问",
                description: "法律条文查询和案例分析"
            }
        ],
        website: "https://www.baichuan-ai.com",
        tryLink: "https://www.baichuan-ai.com"
    },
    {
        id: 21,
        title: "MiniMax",
        subtitle: "多模态交互AI",
        description: "专注于人机交互的AI公司，提供文本、语音、视觉多模态交互API和产品解决方案。",
        category: ["chat", "audio", "china"],
        pricing: "paid",
        rating: 4.4,
        date: "2023-07-20",
        tags: ["人机交互", "API服务", "国产"],
        image: "https://example.com/minimax.jpg",
        features: [
            {
                icon: "fas fa-robot",
                title: "虚拟角色",
                description: "创建具有个性的AI虚拟角色"
            },
            {
                icon: "fas fa-project-diagram",
                title: "API集成",
                description: "提供多模态交互API接口"
            }
        ],
        website: "https://www.minimax.chat",
        tryLink: "https://www.minimax.chat"
    },
    {
        id: 22,
        title: "天工AI",
        subtitle: "昆仑万维企业级AI",
        description: "面向企业客户的大模型服务，提供私有化部署和行业定制解决方案。",
        category: ["business", "china"],
        pricing: "paid",
        rating: 4.3,
        date: "2023-11-15",
        tags: ["企业服务", "私有化部署", "国产"],
        image: "https://example.com/tiangong.jpg",
        features: [
            {
                icon: "fas fa-building",
                title: "企业定制",
                description: "行业专属模型训练"
            },
            {
                icon: "fas fa-server",
                title: "私有部署",
                description: "支持本地化私有部署"
            }
        ],
        website: "https://tiangong.kunlun.com",
        tryLink: "https://tiangong.kunlun.com"
    }
        ];

const imageNames = ["demo.png", "demo1.png", "demo2.png", "demo3.png"];
let index = 0;

toolsData.forEach((item) => {
    item.image = imageNames[index];
    item.featureImage = imageNames[index];
    index = (index + 1) % imageNames.length;
});
        // DOM元素
        const menuToggle = document.getElementById('menu-toggle');
        const sidebar = document.getElementById('sidebar');
        const searchInput = document.getElementById('search-input');
        const searchSuggestions = document.getElementById('search-suggestions');
        const suggestionsList = document.getElementById('suggestions-list');
        const searchHistory = document.getElementById('search-history');
        const clearHistoryBtn = document.querySelector('.clear-history');
        const toolsGrid = document.getElementById('tools-grid');
        const categoryItems = document.querySelectorAll('.category-item');

        // 状态变量
        let searchHistoryItems = JSON.parse(localStorage.getItem('aiToolsSearchHistory')) || [];
        let activeCategory = 'all';

        // 初始化页面
        function init() {
            renderTools(toolsData);
            renderSearchHistory();
            setupEventListeners();
        }

        // 渲染工具卡片
        function renderTools(tools) {
            toolsGrid.innerHTML = '';
            
            if (tools.length === 0) {
                toolsGrid.innerHTML = `
                    <div class="empty-state">
                        <i class="fas fa-robot"></i>
                        <h3>没有找到匹配的工具</h3>
                        <p>尝试调整搜索关键词或筛选条件</p>
                        <a href="#" class="reset-filters" id="reset-filters">重置搜索</a>
                    </div>
                `;
                
                document.getElementById('reset-filters').addEventListener('click', (e) => {
                    e.preventDefault();
                    searchInput.value = '';
                    performSearch('');
                });
                return;
            }
            
            tools.forEach(tool => {
                const toolCard = document.createElement('div');
                toolCard.className = 'tool-card';
                toolCard.innerHTML = `
                    <div class="tool-img">
                        <img src="${tool.image}" alt="${tool.title}">
                    </div>
                    <div class="tool-content">
                        <div class="tool-header">
                            <h3 class="tool-title">${tool.title}</h3>
                            <span class="tool-badge ${tool.pricing}">${
                                tool.pricing === 'free' ? '免费' : 
                                tool.pricing === 'paid' ? '付费' : '开源'
                            }</span>
                        </div>
                        <p class="tool-description">${tool.description}</p>
                        <div class="tool-meta">
                            <div class="tool-tags">
                                ${tool.tags.slice(0, 3).map(tag => `
                                    <span class="tool-tag">${tag}</span>
                                `).join('')}
                            </div>
                            <a href="${tool.website}" class="tool-link" target="_blank">访问 <i class="fas fa-external-link-alt"></i></a>
                        </div>
                    </div>
                `;
                toolsGrid.appendChild(toolCard);
            });
        }

        // 渲染搜索历史
        function renderSearchHistory() {
            if (searchHistoryItems.length === 0) {
                searchHistory.innerHTML = '<div class="suggestion-item">暂无搜索历史</div>';
                return;
            }
            
            searchHistory.innerHTML = searchHistoryItems.slice(0, 5).map(item => `
                <div class="suggestion-item" data-search="${item}">${item}</div>
            `).join('');
        }

        // 添加搜索历史
        function addSearchHistoryItem(term) {
            if (!term.trim()) return;
            
            searchHistoryItems = searchHistoryItems.filter(item => item.toLowerCase() !== term.toLowerCase());
            searchHistoryItems.unshift(term);
            
            if (searchHistoryItems.length > 10) {
                searchHistoryItems = searchHistoryItems.slice(0, 10);
            }
            
            localStorage.setItem('aiToolsSearchHistory', JSON.stringify(searchHistoryItems));
            renderSearchHistory();
        }

        // 清除搜索历史
        function clearSearchHistory() {
            searchHistoryItems = [];
            localStorage.removeItem('aiToolsSearchHistory');
            renderSearchHistory();
        }

        // 生成搜索建议
        function generateSuggestions(term) {
            if (!term.trim()) {
                suggestionsList.innerHTML = '';
                searchSuggestions.classList.remove('active');
                return;
            }
            
            const suggestions = [];
            
            toolsData.forEach(tool => {
                if (tool.title.toLowerCase().includes(term.toLowerCase())) {
                    suggestions.push(tool.title);
                }
            });
            
            toolsData.forEach(tool => {
                tool.tags.forEach(tag => {
                    if (tag.toLowerCase().includes(term.toLowerCase()) && !suggestions.includes(tag)) {
                        suggestions.push(tag);
                    }
                });
            });
            
            if (suggestions.length > 0) {
                suggestionsList.innerHTML = suggestions.slice(0, 5).map(suggestion => `
                    <div class="suggestion-item" data-search="${suggestion}">${suggestion}</div>
                `).join('');
                searchSuggestions.classList.add('active');
            } else {
                suggestionsList.innerHTML = '<div class="suggestion-item">没有找到匹配的建议</div>';
                searchSuggestions.classList.add('active');
            }
        }

        // 执行搜索
        function performSearch(term) {
            let filteredTools = toolsData;
            
            // 分类筛选
            if (activeCategory !== 'all') {
                filteredTools = filteredTools.filter(tool => 
                    tool.category.includes(activeCategory)
                );
            }
            
            // 搜索筛选
            if (term.trim()) {
                filteredTools = filteredTools.filter(tool => {
                    return (
                        tool.title.toLowerCase().includes(term.toLowerCase()) || 
                        tool.description.toLowerCase().includes(term.toLowerCase()) || 
                        tool.tags.some(tag => tag.toLowerCase().includes(term.toLowerCase()))
                    );
                });
            }
            
            renderTools(filteredTools);
            if (term.trim()) addSearchHistoryItem(term);
        }

        // 设置事件监听器
        function setupEventListeners() {
            // 菜单切换
            menuToggle.addEventListener('click', () => {
                sidebar.classList.toggle('active');
            });
            
            // 分类导航点击
            categoryItems.forEach(item => {
                item.addEventListener('click', function(e) {
                    e.preventDefault();
                    
                    categoryItems.forEach(i => i.classList.remove('active'));
                    this.classList.add('active');
                    
                    activeCategory = this.dataset.category;
                    performSearch(searchInput.value);
                });
            });
            
            // 搜索输入事件
            searchInput.addEventListener('input', () => {
                generateSuggestions(searchInput.value);
            });
            
            searchInput.addEventListener('focus', () => {
                if (searchInput.value.trim() || searchHistoryItems.length > 0) {
                    searchSuggestions.classList.add('active');
                }
            });
            
            // 搜索建议点击
            searchSuggestions.addEventListener('click', (e) => {
                if (e.target.classList.contains('suggestion-item')) {
                    const searchTerm = e.target.dataset.search;
                    searchInput.value = searchTerm;
                    performSearch(searchTerm);
                    searchSuggestions.classList.remove('active');
                }
            });
            
            // 清除历史
            clearHistoryBtn.addEventListener('click', (e) => {
                e.preventDefault();
                clearSearchHistory();
            });
            
            // 回车搜索
            searchInput.addEventListener('keydown', (e) => {
                if (e.key === 'Enter') {
                    performSearch(searchInput.value);
                    searchSuggestions.classList.remove('active');
                }
            });
            
            // 点击外部关闭建议框
            document.addEventListener('click', (e) => {
                if (!searchSuggestions.contains(e.target) && e.target !== searchInput) {
                    searchSuggestions.classList.remove('active');
                }
            });
            
            // 响应式调整
            function checkScreenSize() {
                if (window.innerWidth <= 992) {
                    menuToggle.style.display = 'flex';
                } else {
                    menuToggle.style.display = 'none';
                    sidebar.classList.remove('active');
                }
            }
            
            checkScreenSize();
            window.addEventListener('resize', checkScreenSize);
        }

        // 初始化页面
        init();
    </script>
</body>
</html>